package com.atguigu.feign.clients;

import com.atguigu.common.utils.R;
import com.atguigu.feign.to.SkuHasStockTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * @Description:  根据skuID 查出是否还有库存
     * * @param skuIds
     * * @return R
     */
    @PostMapping("/ware/waresku/hasstock")
    R hasstock(@RequestBody List<Long> skuIds);
}
